<?php

class Application_Form_RequisitionSummary extends Zend_Form
{

    public function init()
    {
        $this->setMethod('post');
        
        $reqnumber = new ZA_Form_Element_Reqnumber('no_request');
        $reqnumber->setLabel('Req. Number')->setRequired(true);
        
        $tanggal = new ZendX_JQuery_Form_Element_DatePicker('tanggal_request');
        $tanggal->setLabel('Date')->setRequired();
        
        $departemen = new Zend_Form_Element_Text('nama_departemen');
        $departemen->setLabel('Department')->setRequired();
        
        $bpbcnum = new Zend_Form_Element_Text('no_bpbm');
        $bpbcnum->setLabel('BPBC Reff. Number');
        
        $revisi = new Zend_Form_Element_Text('revisi');
        $revisi->setLabel('Revision');
        
        $kodebudget = new Zend_Form_Element_Text('kode_budget');
        $kodebudget->setLabel('Dept. Budget Code');
        
        $statsupplier = new Zend_Form_Element_Radio('nama_supplier');
        $statsupplier->setLabel('Supplier Status')->setMultiOptions(array('local' => 'Local', 'import' => 'Import'));
        
        $statbudget = new Zend_Form_Element_Radio('statbudget');
        $statbudget->setLabel('Budgeting Status')->setMultiOptions(array('budget' => 'Budgeting', 'unbudget' => 'Unbudgeting'));
        
        $kategorirequest = new Zend_Form_Element_Select('kategori_request');
        $kategorirequest->setLabel('Request Categories')
                ->setMultiOptions(array(NULL => 'Choose Categories','MR' => 'MATERIAL', 'IR' => 'INVESTMENT', 'ER' => 'EXTERNAL REPAIR', 'OR' => 'OVERHEAD REQUEST', 'OER' => 'OFFICE EXP.', 'OTR' => 'OTHERS'))
                ->setRequired();
        
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Add Requisition');
        
        $cancel = new Zend_Form_Element_Button('cancel');
        $cancel->setLabel('Cancel');
        
        $this->addElements(array($reqnumber, $kategorirequest, $tanggal, $departemen, $bpbcnum, $revisi, $kodebudget, $statsupplier, $statbudget, $submit, $cancel));
    }


}

